package com.zhou.JavaAndroidFirm.utils;

import android.app.Activity;
import android.os.Handler;

import java.lang.ref.WeakReference;

/**
 * @author Administrator
 * @date 2018/7/15 0015
 * @des 封装弱引用handler防止内存泄露
 */
public abstract class WeakReferenceHandler extends Handler {
    private WeakReference<Activity> mActivity;

    public WeakReferenceHandler(Activity act) {
        this.mActivity = new WeakReference<Activity>(act);
    }
}
